import { RouteRecordRaw } from 'vue-router'

const staticRoutes: Array<RouteRecordRaw> = [
  {
    path: '/login',
    name: 'Login',
    component: () => import('@/views/login/index.vue'),
  },
  {
    path: '/',
    name: 'Layout',
    redirect: 'home',
    component: () => import('@/views/layout/index.vue'),
    children: [
      {
        path: '/home',
        name: 'home',
        meta: {
          title: 'menu.home',
        },
        component: () => import('@/views/home/index.vue'),
      },
      {
        path: '/:pathMatch(.*)*',
        component: () => import('@/views/error/index.vue'),
      },
    ],
  },
  // ...其他静态路由
]

export { staticRoutes }
